﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo.Net.SqlSugar
{
    public sealed partial class SqlSugarDBCom
    {


        #region 构造函数

        private readonly ISqlSugarClient _sugarClient;

        public ISqlSugarClient SugarClient => _sugarClient;

        public SqlSugarDBCom(ISqlSugarClient sugarClient)
        {
            _sugarClient = sugarClient;
        }


        /// <summary>
        /// 定义了数据表映射关系的实体类型。
        /// </summary>

        public SimpleClient<Tusr_User> Tusr_User => _sugarClient.GetSimpleClient<Tusr_User>();

        #endregion
    }
}
